package com.shijie99.russ.service.imp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shijie99.russ.dao.UserMapper;
import com.shijie99.russ.pojo.User;
import com.shijie99.russ.service.IUserService;
@Service("userService")
public class UserServiceImp implements IUserService{
	@Autowired
	private UserMapper userMapper;

	public User getUserById(int userId) {
		return this.userMapper.selectByPrimaryKey(userId);
	
	}
	public User queryByName(String username) {
		return this.userMapper.queryByName(username);
		
	}

}
